from django.contrib import admin
from login.models import User


@admin.register(User)
class UserAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'password', 'sex')
    list_display_links = ('id', 'name')
    search_fields = ['name']
    ordering = ('-name',)
